// 接口1  
interface Brother {
    money: number;
    height: number;
}

interface Sister {
    cook(): string;
    dance: (m: string) => void;
}

class BoyFriend implements Brother, Sister {
    money: number;
    height: number;

    constructor(m: number, h: number) {
        this.money = m;
        this.height = h;
    }

    cook() {
        return '麻辣小龙虾';
    }

    dance(music: string) {
        console.log('接下来欣赏：' + music);
        
    }
}

const bf1 = new BoyFriend(200000, 190)

// console.log(bf1);

console.log(bf1.cook());
bf1.dance('小天鹅');

